<?php
namespace app\index\controller;
use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index()
    {
        $character=Db::name("character")->where('ch_state',1)->select();
        $group=Db::name("group")->where('gr_state',1)->select();
        $this->assign('character',$character);
        $this->assign('group',$group);
        return $this->fetch('index');
    }
}
